package org.pluslibs.framework.swingplus.factory;

import java.awt.Color;
import java.awt.Dimension;

public class JFieldConstraints {
    private static final int DEFAULT_COLUMNS = 24;
    private static final int DEFAULT_TEXT_AREA_RESULTS = 3;
    private static final Color DEFAULT_BORDER_COLOR = Color.LIGHT_GRAY;
    private static final Dimension DEFAULT_JTABLE_PLUS_DIMENSION = new Dimension(250, 90);

    private int columns;
    private int textAreaRows;
    private Color borderColor;
    private Dimension jTablePlusDimensions;

    public void setjTablePlusDimensions(Dimension jTablePlusDimensions) {
        this.jTablePlusDimensions = jTablePlusDimensions;
    }

    public JFieldConstraints() {
        this.columns = DEFAULT_COLUMNS;
        this.textAreaRows = DEFAULT_TEXT_AREA_RESULTS;
        this.borderColor = DEFAULT_BORDER_COLOR;
        this.jTablePlusDimensions = DEFAULT_JTABLE_PLUS_DIMENSION;
    }

    public Dimension getjTablePlusDimensions() {
        return jTablePlusDimensions;
    }

    public void setColumns(int columns) {
        this.columns = columns;
    }

    public void setTextAreaRows(int textAreaRows) {
        this.textAreaRows = textAreaRows;
    }

    public void setBorderColor(Color borderColor) {
        this.borderColor = borderColor;
    }

    public int getColumns() {
        return columns;
    }

    public int getTextAreaRows() {
        return textAreaRows;
    }

    public Color getBorderColor() {
        return borderColor;
    }
}
